//2009/08/15 18:37:05
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class BritishCoins
{
public:
    vector <int> coins(int pence)
    {
		vector<int> ret;		
		ret.push_back((int) (pence/240));
		pence %= 240;
		ret.push_back((int) (pence/12));
		pence %= 12;
		ret.push_back(pence);
		return ret;
    }
};
